package com.bacon.gmall.product.service;

import com.bacon.gmall.model.product.*;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author： bacon、
 * @version： 1.0
 * @create： 2020-12-19 13:09
 * @description:
 */
public interface BaseManageService {
    List<BaseCategory1> getCategory1();

    List<BaseCategory2> getCategory2(Long category1);

    List<BaseCategory3> getCategory3(Long category2);

    List<BaseAttrInfo> attrInfoList(Long category1Id, Long category2Id, Long category3Id);

    void saveAttrInfo(BaseAttrInfo baseAttrInfo);

    IPage<BaseTrademark> baseTrademark(Long page, Long limit);

    BaseTrademark getBaseTrademark(Long id);

    List<BaseAttrValue> getAttrValueList(Long attrId);

    void updateBaseTrademark(BaseTrademark baseTrademark);

    IPage<SpuInfo> spuList(Integer page, Long limit, Long category3Id);


    List<BaseTrademark> getTrademarkList();

    List<BaseSaleAttr> getSaleAttrList();

    void saveBaseTrademark(BaseTrademark baseTrademark);

    void removeBaseTrademark(Long trademarkId);

    void saveSpuInfo(SpuInfo spuInfo);

    List<SpuImage> spuImageList(Long spuId);

    void onSale(Long skuId);

    void cancelSale(Long skuId);

    List<SpuSaleAttr> spuSaleAttrList(Long spuId);

    void saveSkuInfo(SkuInfo skuInfo);

    IPage<SkuInfo> list(Long page, Long limit);

}
